package com.example.mobile2032021606168xmy0522;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShowDataActivity extends AppCompatActivity {

    private TextView tvShowDataUserName;
    private TextView tvShowDataPassword;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_data);
        initView();
        Intent intent=getIntent();
        tvShowDataUserName.setText(intent.getStringExtra("userName"));
        Bundle bundle=intent.getExtras();
        tvShowDataPassword.setText(bundle.getString("passWord"));
    }

    private void initView() {
        tvShowDataUserName = (TextView) findViewById(R.id.tv_ShowData_UserName);
        tvShowDataPassword = (TextView) findViewById(R.id.tv_ShowData_Password);
    }
}